namespace FrameIdentityReq.Frames
{
    public class ValidationCodeField : IntField, IValidationCodeField
    {
        public ValidationCodeField(IBytesBuffer buffer, int index, string name)
            : base(buffer, index, 1 << 3, name) { }

        public ValidationCodeField(IField field, string name)
            : this(field, field.Index + field.Count, name) { }

        public new ValidationCodeEnum Value
        {
            get { return (ValidationCodeEnum)base.Value; }
            set { base.Value = (int)value; }
        }
    }
}